package org.advanced.io;

import java.io.FileInputStream;

/**
 * @author John.zhang
 * @version Id: FileInputStreams, v 1.0 2020/12/14 11:07 ZhiYong Exp $
 */
public class FileInputStreams {

    public static void main(String[] args) throws Exception {
        //读取本地磁盘
        FileInputStream fileInputStream = null;
        fileInputStream = new FileInputStream("C:/data/io/io.txt");
        int i = 0;

        while ((i = fileInputStream.read())!=-1){
            //ASCII码
            System.out.print((char) i);
        }


    }

}
